package Lesson20.Exceptions;

public class ExceptionsDemo 
{
	public static void main(String[] args) {
		Person Ivan = new Person();
		Person Maria = new Person();
		
		try 
		{
			Ivan.hasSameName(Maria);
		} 
		catch (PersonException e) 
		{
			e.printStackTrace();
		}
		
		System.out.println("Ivan and Maria");
	}
}
